<div class="ch_top5" style="background-color:#EBEBEC;border-color:#F2F2F2 #CDCDCE #CDCDCE #F2F2F2;border-style:solid;border-width:3px;padding-top:5px;padding:0.2em;margin-right:16px;">
<img src="<?php echo $this->getSkinUrl();?>images/top10.gif"/>
<b>The top 5 questions</b>
<?php $posts = $this->getPosts(); ?>
<?php if(count($posts)): ?>
<ul style="list-style-position:outside;margin-left:1.5em;list-style-type:decimal;">
<?php foreach ($posts as $post): ?>
<li style="list-style-type:decimal;margin-left:1.5em;">
<span>
<a href="<?php
foreach($post->getCats() as $title=>$url){ 
	$cat_new=$url;
	$title_new=$title;
 } 
 echo $cat_new. '/post/' . $post->getIdentifier(); 
 
 ?>"><?php echo $post->getTitle();?></a>
</span>
</li>
<?php endforeach; ?>
</ul>
<?php else: ?> 
<?php echo Mage::helper('customerhelp')->__('No Question In Top5.');?>
<?php endif ?>
</div>